package kr.ac.kongju.gedl.index.vo;

public class IndexRelatedVO {
	private String indexRelatedId = "";		//연관색인어ID
	private String indexId = "";			//색인어ID
	private String relatedId = "";			//색인어Id
	private String relatedType = "";		//연관유형
	public IndexRelatedVO() {
		super();
	}
	public IndexRelatedVO(String indexRelatedId) {
		super();
		this.indexRelatedId = indexRelatedId;
	}
	
	public String getIndexRelatedId() {
		return indexRelatedId;
	}
	public void setIndexRelatedId(String indexRelatedId) {
		this.indexRelatedId = indexRelatedId;
	}
	public String getIndexId() {
		return indexId;
	}
	public void setIndexId(String indexId) {
		this.indexId = indexId;
	}
	public String getRelatedId() {
		return relatedId;
	}
	public void setRelatedId(String relatedId) {
		this.relatedId = relatedId;
	}
	public String getRelatedType() {
		return relatedType;
	}
	public void setRelatedType(String relatedType) {
		this.relatedType = relatedType;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((indexId == null) ? 0 : indexId.hashCode());
		result = prime * result
				+ ((indexRelatedId == null) ? 0 : indexRelatedId.hashCode());
		result = prime * result
				+ ((relatedId == null) ? 0 : relatedId.hashCode());
		result = prime * result
				+ ((relatedType == null) ? 0 : relatedType.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		IndexRelatedVO other = (IndexRelatedVO) obj;
		if (indexId == null) {
			if (other.indexId != null)
				return false;
		} else if (!indexId.equals(other.indexId))
			return false;
		if (indexRelatedId == null) {
			if (other.indexRelatedId != null)
				return false;
		} else if (!indexRelatedId.equals(other.indexRelatedId))
			return false;
		if (relatedId == null) {
			if (other.relatedId != null)
				return false;
		} else if (!relatedId.equals(other.relatedId))
			return false;
		if (relatedType == null) {
			if (other.relatedType != null)
				return false;
		} else if (!relatedType.equals(other.relatedType))
			return false;
		return true;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("IndexRelatedVO [indexId=");
		builder.append(indexId);
		builder.append(", indexRelatedId=");
		builder.append(indexRelatedId);
		builder.append(", relatedId=");
		builder.append(relatedId);
		builder.append(", relatedType=");
		builder.append(relatedType);
		builder.append("]");
		return builder.toString();
	}
}
